<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/3/13
  Time: 18:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>订单详情</title>
    <script>

        (function($){
            $(window).load(function(){

                $("a[rel='load-content']").click(function(e){
                    e.preventDefault();
                    var url=$(this).attr("href");
                    $.get(url,function(data){
                        $(".content .mCSB_container").append(data); //load new content inside .mCSB_container
                        //scroll-to appended content
                        $(".content").mCustomScrollbar("scrollTo","h2:last");
                    });
                });

                $(".content").delegate("a[href='top']","click",function(e){
                    e.preventDefault();
                    $(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
                });

            });
        })(jQuery);
    </script>
</head>
<body>
<jsp:include page="header.jsp"/>
<section class="rt_wrap content mCustomScrollbar">
    <div class="rt_content">
        <div class="page_title">
            <h2 class="fl">订单详情示例</h2>
        </div>
        <table class="table">
            <tr>
                <td>收件人：${order.address.name}</td>
                <td>联系电话：${order.address.num}</td>
                <td>收件地址：${order.address.city}${order.address.county}${order.address.detailed}</td>
            </tr>
            <tr>
                <td>下单时间：${order.createTime}</td>
                <td>订单状态：<a>已付款，待发货</a></td>
                <td colspan="3">订单备注：<mark>${order.remarks}</mark></td>
            </tr>
            <tr>
                <td>购买用户：${order.user.userName}</td>
            </tr>
        </table>
        <table class="table">

            <c:forEach var="list" items="${order.orderLists}">
                <tr>
                    <td class="center"><img src="${list.books.bookImg}" width="50" height="50"/></td>
                    <td>${list.books.bookName}</td>
                    <td class="center"><strong class="rmb_icon">${list.books.price}.00</strong></td>
                    <td class="center"><strong>${list.counts}</strong></td>
                    <td class="center"><strong class="rmb_icon">${order.total}.00</strong></td>
                </tr>
            </c:forEach>
        </table>
        <aside class="mtb" style="text-align:right;">
            <label>管理员操作：</label>
            <input type="text" class="textbox textbox_295" placeholder="管理员操作备注"/>
            <input type="button" value="发货" class="group_btn"/>
        </aside>
    </div>
</section>
</body>
</html>
